﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Common;
using System.Reflection;

namespace MiData
{
    public interface  BaseDBAdapter
    {
          string ConnectionString { get; set; }

          DbConnection Connection { get;}

          DbCommand CreateCommand(string sql);

          DbCommand CreateCommand();

          DbDataReader QuickExecuteQuery(string sql);

          int QuickExecuteNoQuery(string sql);

          void Open();

          void Close();

        /// <summary>
        /// 返回自动增长的键
        /// </summary>
        /// <returns></returns>
          long GetLastInsertID();
    }
}
